﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Exentials.Xoox.Styles
{
    public class XStyleSheet : XElementBase
    {
        private XNumberFormats _numberFormats;
        private XFonts _fonts;
        private XFills _fills;
        private XBorders _borders;
        private XFormattingRecords _formattingRecords;
        private XCellFormats _cellFormats;
        private XCellStyles _cellStyles;
        private XFormats _formats;
        private XTableStyles _tableStyles;
        private XColors _colors;

        public XStyleSheet()
            : base("styleSheet")
        {
            this.Add(_numberFormats = new XNumberFormats());
            this.Add(_fonts = new XFonts());
            this.Add(_fills = new XFills());
            this.Add(_borders = new XBorders());
            this.Add(_formattingRecords = new XFormattingRecords());
            this.Add(_cellFormats = new XCellFormats());
            this.Add(_cellStyles = new XCellStyles());
            this.Add(_formats = new XFormats());
            this.Add(_tableStyles = new XTableStyles());
            this.Add(_colors = new XColors());
        }

        public XNumberFormats NumberFormats
        {
            get { return _numberFormats; }
        }

        public XFonts Fonts
        {
            get { return _fonts; }
        }

        public XFills Fills
        {
            get { return _fills; }
        }

        public XBorders Borders
        {
            get { return _borders; }
        }

        public XFormattingRecords FormattingRecords
        {
            get { return _formattingRecords; }
        }

        public XCellFormats CellFormats
        {
            get { return _cellFormats; }
        }

        public XCellStyles CellStyles
        {
            get { return _cellStyles; }
        }
    }
}
